package cn.tedu.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
 * 所有的分页信息
 * @author Administrator
 *
 */
public class Page<T> implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int currentPage;
	private int pageSize;
	private int previousPage;
	private int nextPage;
	private int totalCount;
	private int totalPage;
	
	private List<T> data;//当前页的那页数据
	private String rolekeyword;//角色的模糊关键字
	private String userkeyword;//用户的模糊关键字
	private String coursekeyword;
	
	
	
	public String getCoursekeyword() {
		return coursekeyword;
	}

	public void setCoursekeyword(String coursekeyword) {
		this.coursekeyword = coursekeyword;
	}

	//bootstrap分页条中存在的超链接个数
	private List<Integer> aNum;

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPreviousPage() {
		return previousPage;
	}

	public void setPreviousPage(int previousPage) {
		this.previousPage = previousPage;
	}

	public int getNextPage() {
		return nextPage;
	}

	public void setNextPage(int nextPage) {
		this.nextPage = nextPage;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public String getRolekeyword() {
		return rolekeyword;
	}

	public void setRolekeyword(String rolekeyword) {
		this.rolekeyword = rolekeyword;
	}

	public String getUserkeyword() {
		return userkeyword;
	}

	public void setUserkeyword(String userkeyword) {
		this.userkeyword = userkeyword;
	}

	public List<Integer> getaNum() {
		return aNum;
	}

	public void setaNum(List<Integer> aNum) {
		this.aNum = aNum;
	}

	@Override
	public String toString() {
		return "Page [currentPage=" + currentPage + ", pageSize=" + pageSize + ", previousPage=" + previousPage
				+ ", nextPage=" + nextPage + ", totalCount=" + totalCount + ", totalPage=" + totalPage + ", data="
				+ data + ", rolekeyword=" + rolekeyword + ", userkeyword=" + userkeyword + ", aNum=" + aNum + "]";
	}
	
}
